package com.foreknow.springboot_demo.mapper;

import com.foreknow.springboot_demo.po.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDetailetMapper {

    /**
     * 批量添加到订单明细
     * @param ordersId
     * @param list
     * @return
     */
    public Integer saveToOrdersDetailet(@Param("orderId") Integer ordersId,@Param("list") List<Cart> list);

}
